/*
 * @Description: 文章类型接口
 * @Author: Huang Junjie
 * @Date: 2021-04-28 14:03:49
 * @LastEditTime: 2021-04-30 11:52:49
 * @LastEditors: Huang Junjie
 */
import request from '@/utils/request';

// 文章类型列表
export function getDataList(params) {
  return request({
    url: `/jjxtapi/dict/findByDtId`,
    method: 'get',
    params
  });
}

// 保存或更新文章类型
export function updateDataList(data) {
  return request({
    url: `/jjxt/article/articleType`,
    method: 'post',
    data
  });
}

// 文章类型排序移动
export function sortMoveData(data) {
  return request({
    url: `/jjxt/article/articleType/move`,
    method: 'post',
    data
  });
}

// 删除文章类型
export function deleteData(data) {
  return request({
    url: `/jjxt/article/articleType/`,
    method: 'delete',
    data
  });
}
